import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)
let store = new Vuex.Store({
  state: {
    isCollapse:false
  },
  mutations: {
      changeName(state, params) {
        console.log('修改', state, params)
        //  修改state里的数据
        state.isCollapse = params.isCollapse
      },
  },
  actions: {},
  getters: {}
})
export default store;